diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-20 17:11:37 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-20 17:11:37 +0000 |
| commit | bed3635d310d243a7946566e4eea0ed5e4833a49 (patch) | |
| tree | 13645f1d4ab2283cd8e8aceb2e836cebec9e2a98 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 02cb942ad9e1bd9dd6cb1083bd322ade3f83613e (diff) | |
Move ShidToPatio code to separate package
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 44 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..f9263c9e --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.shidtopatio.ShidToPatioTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,44 @@ +Compilation unit elements: + + +Locals: + * (val "tupleElement__2__0" int) + * (val "tupleElement__1__0" int) + * (val "tupleElement__0__0" int) + * (val "tuple__0" int) + * (val "tuplePointer__0" data-ptr) + +Instructions: + +( + (local-store (local "tupleElement__2__0") (local "d")) + (local-store (local "tupleElement__1__0") (local "c")) + (local-store (local "tupleElement__0__0") (local "b")) + (alloc-heap (local "tuplePointer__0") (struct ((struct (data-ptr int int int)) (struct (int int int))))) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int int)) (struct (int int int)))) + offset=(1 0) + value=(local "tupleElement__0__0") + ) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int int)) (struct (int int int)))) + offset=(1 1) + value=(local "tupleElement__1__0") + ) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct ((struct (data-ptr int int int)) (struct (int int int)))) + offset=(1 2) + value=(local "tupleElement__2__0") + ) + (data-ptr-to-int (local "tuple__0") (local "tuplePointer__0")) +) + +Temporary stack: + * PatioLocalRef[name=tuple__0] + * PatioLocalRef[name=a] |
